package org.mystock.candlestick.model;

import java.util.Date;

@SuppressWarnings("serial")
public class Position extends PersistentEntity {
	
	private long numOfStock;
	private float price;
	private Date purchaseDate;
	
	private PositionType positionType;
	private Ticker ticker;
	
	/**
	 * @return the numOfStock
	 */
	public long getNumOfStock() {
		return numOfStock;
	}
	/**
	 * @param numOfStock the numOfStock to set
	 */
	public void setNumOfStock(long numOfStock) {
		this.numOfStock = numOfStock;
	}
	
	/**
	 * @return the price
	 */
	public float getPrice() {
		return price;
	}
	/**
	 * @param price the price to set
	 */
	public void setPrice(float price) {
		this.price = price;
	}
	
	/**
	 * @return the purchaseDate
	 */
	public Date getPurchaseDate() {
		return purchaseDate;
	}
	/**
	 * @param purchaseDate the purchaseDate to set
	 */
	public void setPurchaseDate(Date purchaseDate) {
		this.purchaseDate = purchaseDate;
	}
	
	/**
	 * @return the positionType
	 */
	public PositionType getPositionType() {
		return positionType;
	}
	/**
	 * @param positionType the positionType to set
	 */
	public void setPositionType(PositionType positionType) {
		this.positionType = positionType;
	}
	
	/**
	 * @return the ticker
	 */
	public Ticker getTicker() {
		return ticker;
	}
	/**
	 * @param ticker the ticker to set
	 */
	public void setTicker(Ticker ticker) {
		this.ticker = ticker;
	}

}
